<!--#include virtual="/dzps/p1.asp"-->
<%
	s1 "select equipmentId,questionDescription,[declare],declareTele,[status],typ,repairerId,fxpwd from log1 where [ID]={id:int}"
	s1 "select equipmentName,department,[local],machineNo from v_prn  where [id]={equipmentId:int}"
	s1 "select name1 from baseinfo  where [name1]={status} and mode='工单状态'"
%>
<!DOCTYPE html>
<html>
<head>
<%easp.include "h.asp"%>
<style type="text/css">
html {
    background-color: #fff;
}

</style>
    <link rel="stylesheet" href="/dzps/src/layuiadmin/style/pat_post.css" media="all">
</head>
<body>
  <div class="layui-form">
	  	<button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="t_ret">
	 <i class="layui-icon layui-icon-return layuiadmin-button-btn"></i>
	 </button>
<%
	i_h "id",val("id")
    echo "<br>"
	if val("local")<>"" then
		blockquote(val("department")&val("local") & iif(val("machineNo")="",""," 编号：" & val("machineNo")))
	end if
	echo js2("input1.html","fxpwd","分享密码",val("fxpwd"),"")
	echo js2("textarea.html","questionDescription","问题描述",val("questionDescription"),"required")
	if val("declare")="" then
		vas "declare",session("username")
	end if
	echo js2("input1.html","declare","提交人",val("declare"),"required")
	if session("mobile")<>"" and val("declareTele")="" then
		vas "declareTele",session("mobile")
	end if
	echo js2("input1.html","declareTele","联系电话",val("declareTele"),"required")
	dim sql
	if val("id")="" then
		sql="select id,name1 from baseinfo where mode='工单类型' and (name1 not in ('打印机','电脑'))"
	else
		sql="select id,name1 from baseinfo where mode='工单类型'"
	end if
	echo myopt("typ","工单类型",sql2arr(sql),iif(val("typ") = "",975,val("typ")))
	if val("equipmentName")<>"" then
		echo js2("input1.html","equipmentName","打印机型号",val("equipmentName"),"required")
	end if
	echo myopt("status","工单状态",sql2arr("select id,name1 from baseinfo where mode='工单状态'"),iif(val("status") = "",899,val("status")))
	echo myopt("repairerId","接单人",sql2arr("select id,truename from [user] where user_typ=978"),iif(val("repairerId") = "",session("user_id"),val("repairerId")))
	
%>
	
        <div class="layui-form-item">
          <label class="layui-form-label">给接单人</label>
		  <input type="checkbox" name="sendmess" lay-skin="primary" lay-filter="sendmess" title="发送信息" checked>
        </div>
    <div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-front-submit" value="确认">
    </div>
  </div>

	<div class="layui-card">
		<div class="layui-card-header">历史数据</div>
		<div class="layui-card-body">
			<ul class="layuiadmin-card-status layuiadmin-home2-usernote">
				<div class="layui-collapse" lay-accordion lay-filter="cd1">
				</div>
			</ul>
		</div>
	</div>
  <script src="/<%=rootpath%>/src/layuiadmin/layui/layui.js"></script>  
  <script>
  layui.config({
    base: '/<%=rootpath%>/src/layuiadmin/' 
  }).extend({
    index: 'lib/index' 
  }).use(['index', 'set','form', 'upload','user'],function(){
    var $ = layui.$
    ,setter = layui.setter
    ,admin = layui.admin
    ,form = layui.form;  
  $('textarea').focus();
	form.on('submit(t_ret)',function(data){
		location.href = "javascript:history.back();" 
	})	 
	$.ajax({
			url:'pj2.asp?action=div_data_declareTele&declareTele=<%=val("declareTele")%>',
			success:function(res){
				$('div.layui-collapse').html(res);
			},
			error:function(error){
					alert('数据加载失败');
			}
		});  
  
  });
  </script>  
</body>
</html>